package com.example.android.network.action;

import com.example.android.game.Player;
import com.example.android.synchronization.Updater;
import com.google.android.maps.GeoPoint;

public class AddPlayer implements Action
{

	@Override
	public void execute(String[] values)
	{
		String login = values[0];
		
		int latitudeE6 = Integer.valueOf(values[1]);
		int longitudeE6 = Integer.valueOf(values[2]);
		GeoPoint location = new GeoPoint(latitudeE6, longitudeE6);
		
		Updater.getInstance().addPlayer(new Player(login, location));
	}
}
